
public class SumModify {
    public static void main(String[] args) {
        int sum1 = sum(3,5);
        double sum2 = sum(2.3,4.5,4.7);
        System.out.println(sum1 + " " + sum2);
    }
    public static int sum(int x,int y){
        return (x + y);
    }
    public static double sum(double x,double y,double z){
        return (x + y + z);
    }
}
